home *** CD-ROM | disk | FTP | other *** search
/ Network Support Library / RoseWare - Network Support Library.iso / apidev / conhlp.arc / CONHELP.H < prev    next >
Text File  |  1988-10-26  |  3KB  |  137 lines

  1. /* Machine type definitions */
  2. #define        BRIDGE        1
  3. #define        FILESERVER    0
  4.  
  5. /* Read/Write pointer seek definitions */
  6. #define        BEG_FILE    0
  7. #define        CUR_LOC        1
  8. #define        END_FILE    2
  9.  
  10. /* Record and buffer size definitions */
  11. #define        MAX_RECORDS            20
  12. #define        RECORD_SIZE            80
  13. #define        MAX_BUFFER_SIZE        RECORD_SIZE * MAX_RECORDS
  14.  
  15. /* Menu/item selection definitions */
  16. #define        MAX_MENUS            8
  17. #define        MAX_MENU_ITEMS        10
  18.  
  19. /* Main menu selection definitions */
  20. #define        MAINHELPOFF            0L
  21. #define        MAINHELPLEN            20
  22.  
  23. struct MenuListStructure {
  24.     long menuPtr;
  25.     unsigned menuLength;
  26.     struct ScreenStructure {
  27.         long screenPtr;
  28.         unsigned screenLength;
  29.     } Screen[MAX_MENU_ITEMS];
  30. } MenuList[MAX_MENUS] = {
  31.     { 1600L,17,
  32.         {  9920L,20,
  33.            11520L,20,
  34.            13120L,19,
  35.            14640L,14,
  36.            15760L,19,              /*Printer commands*/
  37.            17280L,20,
  38.            18880L,17,
  39.            20240L,17,                   
  40.            21600L,20,
  41.            23200L,18,
  42.         }
  43.     },
  44.     {   2960L,17,
  45.         {  24640L, 19,
  46.            26160L, 19,
  47.            27680L, 17,
  48.            29040L, 18,
  49.            30480L, 20,             /*Queue/spooling commands*/
  50.            32080L, 13,
  51.            33120L, 18,                
  52.            34560L, 18,
  53.            36000L, 20,
  54.            NULL, 0
  55.         }
  56.     },
  57.     { 6000L, 17,
  58.         {     60080L, 20,   
  59.               61680L, 20,
  60.               63280L, 20,
  61.               64880L, 20,                /*Disk commands*/
  62.                66480L, 20,                   
  63.               68080L, 20,
  64.               69680L, 20,
  65.                71280L, 20,
  66.               NULL, 0,
  67.               NULL, 0
  68.         }
  69.     },
  70.     {  8000L, 14,
  71.         {     46960L, 20,
  72.              48560L, 20,
  73.               50160L, 12,
  74.              51120L, 20,
  75.              52720L, 20,              
  76.              54320L, 16,
  77.              NULL, 0,
  78.              NULL, 0,              /* Server commands */
  79.              NULL, 0,                  
  80.              NULL, 0
  81.         }
  82.     },
  83.     {  9120L, 10,
  84.         {     55600L, 20,
  85.              57200L, 16,
  86.              58480L, 20,
  87.              NULL, 0,
  88.              NULL, 0,                /*Message commands*/
  89.              NULL, 0,                    
  90.              NULL, 0,
  91.              NULL, 0,
  92.              NULL, 0,
  93.              NULL, 0
  94.          }
  95.     },
  96.     {  4320L, 10,
  97.         {     37600L, 20,
  98.               39200L, 19,
  99.               40720L, 15,
  100.               NULL, 0,
  101.               NULL, 0,            /*Connection commands*/
  102.               NULL, 0,               
  103.               NULL, 0,
  104.               NULL, 0,
  105.               NULL, 0,
  106.               NULL, 0
  107.         } 
  108.     },
  109.     {  7360L, 8,
  110.         {    72880L, 17,
  111.             NULL,  0,
  112.             NULL,  0,
  113.             NULL,  0,
  114.             NULL,  0,
  115.             NULL,  0,
  116.             NULL,  0,            /* Other VAP Commands */
  117.             NULL,  0,     /* You can add help for your own commands here */
  118.             NULL,  0,
  119.             NULL,  0,
  120.         } 
  121.     },
  122.     {  5120L, 11,
  123.         {     41920L, 16,
  124.              43200L, 15,
  125.              44400L, 13,       /*Miscellaneous commands*/
  126.              45440L, 19,
  127.              NULL, 0,               
  128.              NULL, 0,
  129.              NULL, 0,
  130.              NULL, 0,
  131.              NULL, 0,
  132.              NULL, 0
  133.         }
  134.     }
  135. };
  136.  
  137.